import {customeStruct} from '../utils';
const itf = customeStruct.interface;

export const InitData = itf({
    payload: itf({
        partSaleOrderTypes: [itf({
            id: 'string',
            typeCode: 'string',
            typeName: 'string'
        })],
    })
});

export const List = itf({
    payload: itf({
        content: [itf({
            id: 'string',
            rowVersion: 'string? | null',
            options: ['string']
        })],
        totalElements: 'number'
    })
});


export const Detail = itf({
    payload: itf(
        {
            id: 'string',
            status: 'number? | null',
            length: 'number? | null',
            width: 'number? | null',
            height: 'number? | null',
            volume: 'number? | null',
            netWeight: 'number? | null',
            grossWeight: 'number? | null',
            rowVersion: 'string? | null',
            options: [
                'string'
            ],
           
        },
    )
});

export const PackingDetail = itf({
    payload: itf(
        {
            id: 'string',
            details: [itf({
                partSaleOrderCode: 'string',
            })],

        },
    )
});
export const Brand = itf({
    payload: itf({
        content: [
            itf({
                id: 'string',
                code: 'string',
                name: 'string',
            })
        ],
    })
});

export const PackingList = itf({
    payload: itf({
        content: [
            itf({
                id: 'string',
            })
        ],
    })
});
